<?php

function smarty_function_js($params, &$smarty)
{

    $file = $params['file'];
    return "<script type='text/javascript' src='$file'></script>";
}

?>
